<%@page contentType="text/html; charset=utf-8" language="java"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>子用户信息</title>
	<jsp:include page="/common/header-common.jsp"></jsp:include>
	<script type="text/javascript">
		function show() {
			var node= event.srcElement;
			$(node).css('list-style-image',
                (!$(node).children('ul').is(':hidden')) ?
                  'url(plus.gif)' : 'url(minus.gif)');
            $(node).children('ul').toggle('slow');
		}
		
		function info(id) {
			location.href="userInfo.action?id="+id;
		}
	</script>
</head>
	<body id="subuser">
		<div id="wrapper">
			<jsp:include page="/common/header.jsp"></jsp:include>
			<jsp:include page="navication.jsp"></jsp:include>
			<div id="rss_content">
				<div class="rss_title">子用户信息</div>
				<s:if test="message != null">
					<div class="return_tip">
						<s:property value="message" />
					</div>
				</s:if>
				<ul style="list-style: none;">
				<s:iterator value="#session.suser.susers">
					<li style="cursor:pointer;<s:if test="susers != null && !susers.isEmpty()">list-style-image:url(plus.gif)</s:if>" onclick="show();">
						<s:property value="nickname"/>&nbsp;&nbsp;--&nbsp;&nbsp;<a href="javascript:info(<s:property value="id" />);">查看详情</a>
						<s:if test="susers != null && !susers.isEmpty()">
						<ul style="list-style: none;display: none;">
							<s:iterator value="susers">
								<li style="list-style: none">
									<s:property value="nickname"/>&nbsp;&nbsp;--&nbsp;&nbsp;<a href="javascript:info(<s:property value="id" />);">查看详情</a>
								</li>
							</s:iterator>
						</ul>
						</s:if>
					</li>
				</s:iterator>
				</ul>
			</div>
			<div style="clear: both;"></div>
			<div style="height: 40px;" ></div>
			<s:include value="/common/footer.jsp"></s:include>
		</div>
	</body>
</html>